package cn.tedu.spring.eg1;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Repository;

@Repository
public class Product {
    public String title;
    public int num;
    @Value("light of china")
    public String comment;

    @Value("XiaoMiPhone")
    public void setTitle(String title) {
        this.title = title;
    }
    @Value("1000")
    public void setNum(int num) {
        this.num = num;
    }
}
